<%@ page import="MyBean.patient" %>
<%@ page import="java.text.*" %>
<%@ page import="java.util.*" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">a {text-decoration: none}</style>
</head>
<body {
	background="img/背景.png " ;
	style=" background-repeat:no-repeat ;
    background-size:100% 100%; 
    background-attachment: fixed;" 
} >
<%
request.setCharacterEncoding("utf-8");
patient patient1 = new patient();
patient1 = (patient)request.getAttribute("patient2");
SimpleDateFormat sdf1 = new SimpleDateFormat("YYYY-MM-dd HH:mm:ss");
Date date = new Date();
String time = sdf1.format(date);
%>
<jsp:useBean id="people" class="MyBean.patient" scope="session"/>
<hr>
<center>
<h1>
<font size="3" color="red">田园住院系统</font>
<font size="3" color="purple">查询界面</font>
</h1>
</center>
<hr>
<br><br>
<form action="leaveHospital" method="post">
<table border="1" align="center">
<tr><td>住院号：</td><td><input type="text" name="admissionNumber" value="<%=patient1.getAdmissionNumber() %>"></td></tr>
<tr><td>姓名：</td><td><input type="text" name="patientName" value="<%=patient1.getPatientName() %>"></td></tr>
<tr><td>性别：</td><td><input type="text" name="sex" value="<%=patient1.getSex() %>"></td></tr>
<tr><td>年龄：</td><td><input type="text" name="age" value="<%=patient1.getAge() %>"></td></tr>
<tr><td>身份证号：</td><td><input type="text" name="patientNumber" value="<%=patient1.getPatientNumber() %>"></td></tr>
<tr><td>手机号：</td><td><input type="text" name="phone" value="<%=patient1.getPhone() %>"></td></tr>
<tr><td>病床号：</td><td><input type="text" name="roomno" value="<%=patient1.getRoomno() %>"></td></tr>
<tr><td>入院时间：</td><td><input type="text" name="startTime" value="<%=patient1.getStartTime() %>"></td></tr>
<tr><td>入院时间：</td><td><input type="text" name="endTime" value="<%=time %>"></td></tr>
<tr><td colspan="2"><input type="submit" value="出院"></td></tr>
</table>
</form>

<br>
<hr>
<center><em><p style="background:yellow">Copyright &copy; 2020 TianYuan Web Hospital,Nuc.<h1></em></center>
</body>
</html>